<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<DocuServe.Core.Entities.CmsAttribute>>" %>
<table>
    <tr>
        <th>
        </th>
        <th>
            Name
        </th>
        <th>
            Description
        </th>
        <th>
            DateCreated
        </th>
        <th>
            DateModified
        </th>
    </tr>
    <% foreach (var item in Model)
       { %>
    <tr>
        <td>
            <%= Html.ActionLink("Edit", "Edit", new { id=item.ID  }) %>
        </td>
        <td>
            <%= Html.Encode(item.Name) %>
        </td>
        <td>
            <%= Html.Encode(item.Description) %>
        </td>
        <td>
            <%= Html.Encode(String.Format("{0:g}", item.DateCreated)) %>
        </td>
        <td>
            <%= Html.Encode(String.Format("{0:g}", item.DateModified)) %>
        </td>
    </tr>
    <% } %>
</table>
